<?php 
if (version_compare(PHP_VERSION, "5.3.0")==-1) {
     exit("php版本太低了");
}

error_reporting(E_ALL & ~E_NOTICE);
session_start();
define('APP_PATH', dirname(__FILE__).'/');
require(APP_PATH.'class/Framework.class.php');

$config=require(APP_PATH.'config/config.php');
//实例化核心类
$app=new Framework($config);
//启动
$app->run();